package com.company;

import com.company.car.Bus;
import com.company.car.Car;
import com.company.car.MotoVehicle;

public class Main {

    public static void main(String[] args) {
	// write your code here
        MotoVehicle[] motoVehicles = new MotoVehicle[5];
        motoVehicles[0]= new Car("宝马550i","京NY28588");
        motoVehicles[1]= new Bus(12,"京NNN328");
        motoVehicles[2]= new Bus(24,"京NY28588");
        motoVehicles[3]= new Car("别克商务舱GL8","京NY28988");
        motoVehicles[4]= new Car("宝马550i","京NNN588");

        int fee= 0;
        for (MotoVehicle i:motoVehicles) fee += i.CalcRent(1);
        System.out.println(fee);
     }
}
